Class AsaNetworkObjectImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.AsaNetworkObjectImpl
All Implemented Interfaces:
IPCObject, AsaNetworkObject

public class AsaNetworkObjectImpl extends IPCObjectImpl implements AsaNetworkObject
Information provided by the PKI file:

    \class CAsaNetworkObject
    
    \brief CAsaNetworkObject is the asa network object
    \example network().getDevice("Router0").getObjectManager()->getObjectByName("objectName")
    \\use castTo() function to cast AsaObject to AsaNetworkObject
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • setHostIp

      public void setHostIp(IPAddress hostIp)
      Information provided by the PKI file:
      
          \brief set the host ip address to the asa network object
          
          \param hostIp, ip address to use as the host.
          
              
      Specified by:
      setHostIp in interface AsaNetworkObject
      Parameters:
      hostIp - Takes in a parameter of hostIp
    • getHostIp

      public IPAddress getHostIp()
      Information provided by the PKI file:
      
          \brief Returns the host ip address/network address that is set to the asa network object
          
          \return ip, value is the host ip address/network address that is set to the asa network object.
          
              
      Specified by:
      getHostIp in interface AsaNetworkObject
      Returns:
      IPAddress Returns a IPAddress
    • getHostMask

      public IPAddress getHostMask()
      Information provided by the PKI file:
      
          \brief Returns the subnet mask that is set to the asa network object.
          
          \return ip, value is the the subnet mask that is set to the asa network object.
          
              
      Specified by:
      getHostMask in interface AsaNetworkObject
      Returns:
      IPAddress Returns a IPAddress
    • getInvHostMask

      public IPAddress getInvHostMask()
      Information provided by the PKI file:
      
          \brief Returns the inverse subnet mask that is set to the asa network object.
          
          \return ip, value is the the inverse subnet mask that is set to the asa network object.
          
              
      Specified by:
      getInvHostMask in interface AsaNetworkObject
      Returns:
      IPAddress Returns a IPAddress
    • removeHostIp

      public boolean removeHostIp(IPAddress hostIp)
      Information provided by the PKI file:
      
          \brief Remove the host ip address that is set to the asa network object
          
          \param hostIp, hos ip address to remove.
          
          \return bool, value is true if the host was removed, false if not.
          
              
      Specified by:
      removeHostIp in interface AsaNetworkObject
      Parameters:
      hostIp - Takes in a parameter of hostIp
      Returns:
      boolean Returns a boolean
    • setSubnet

      public void setSubnet(IPAddress hostIp, IPAddress hostMask)
      Information provided by the PKI file:
      
          \brief Set the subnet/mask to the asa network object
          
          \param hostIp, Host ip address to set with.
          \param hostMask, Host mask to set with.
          
              
      Specified by:
      setSubnet in interface AsaNetworkObject
      Parameters:
      hostIp - Takes in a parameter of hostIp
      hostMask - Takes in a parameter of hostMask
    • removeSubnet

      public boolean removeSubnet(IPAddress hostIp, IPAddress hostMask)
      Information provided by the PKI file:
      
          \brief Remove the subnet/mask that is set to the asa network object
          
          \param hostIp, Host ip address to remove for.
          \param hostMask, Host mask to remove for.
          
          \return bool, return is true if the subnet was removed, false if not.
          
              
      Specified by:
      removeSubnet in interface AsaNetworkObject
      Parameters:
      hostIp - Takes in a parameter of hostIp
      hostMask - Takes in a parameter of hostMask
      Returns:
      boolean Returns a boolean
    • getNatEntry

      public NATEntry getNatEntry()
      Information provided by the PKI file:
      
          \brief Returns static nat entry that is set to the asa network object
          
          \return NatEntry, value is the static nat entry.
          
              
      Specified by:
      getNatEntry in interface AsaNetworkObject
      Returns:
      NATEntry Returns a NATEntry
    • deleteNatEntry

      public void deleteNatEntry()
      Information provided by the PKI file:
      
          \brief Remove static nat entry that is set to the asa network object
          
              
      Specified by:
      deleteNatEntry in interface AsaNetworkObject
    • getNatList

      public NATListInterface getNatList()
      Information provided by the PKI file:
      
          \brief Returns dynamic nat entry that is set to the asa network object
          
          \return NatListInterface, value is the nat list interface.
          
              
      Specified by:
      getNatList in interface AsaNetworkObject
      Returns:
      NATListInterface Returns a NATListInterface
    • deleteNatList

      public void deleteNatList()
      Information provided by the PKI file:
      
          \brief Remove dynamic nat entry that is set to the asa network object
          
              
      Specified by:
      deleteNatList in interface AsaNetworkObject
    • nameifChanged

      public void nameifChanged(String newName, String oldName)
      Information provided by the PKI file:
      
          \brief Remove nat entry when the referenced nameif is changed.
          
          \param newName, new nameif
          \param oldName, old nameif
          
              
      Specified by:
      nameifChanged in interface AsaNetworkObject
      Parameters:
      newName - Takes in a parameter of newName
      oldName - Takes in a parameter of oldName
    • getRunningConfig

      public List<String> getRunningConfig()
      Information provided by the PKI file:
      
          \brief Returns all object configuration strings in show run.
          
          \return vector<string>, value is all object configuration strings in show run.
          
              
      Specified by:
      getRunningConfig in interface AsaNetworkObject
      Returns:
      List<String> Returns a List<String>
    • getNatRunningConfig

      public List<String> getNatRunningConfig()
      Information provided by the PKI file:
      
          \brief Returns object + nat configuration strings in show run
          
          \return vector<string>, value object + nat configuration strings in show run
          
              
      Specified by:
      getNatRunningConfig in interface AsaNetworkObject
      Returns:
      List<String> Returns a List<String>
    • getNatStatement

      public String getNatStatement()
      Information provided by the PKI file:
      
          \brief Returns the nat statement configuration string in show run.
          
          return string, value is the nat statement configuration string in show run.
          
              
      Specified by:
      getNatStatement in interface AsaNetworkObject
      Returns:
      String Returns a String
    • getAddressStatement

      public String getAddressStatement()
      Information provided by the PKI file:
      
          \brief Returns the host address/subnet mask statement configuration string in show run.
          
          \return string, value is the host address/subnet mask statement configuration string in show run.
          
              
      Specified by:
      getAddressStatement in interface AsaNetworkObject
      Returns:
      String Returns a String
    • updateAsaAclStatement

      public void updateAsaAclStatement()
      Information provided by the PKI file:
      
          \brief Update the corresponding acl statements that have reference to this asa network object
          
              
      Specified by:
      updateAsaAclStatement in interface AsaNetworkObject